<template>
  <div id="app">
    <router-view></router-view>



  <!-- 声明组件使用 -->
    <!-- <p>
      <router-link to="/foo">Go to Foo</router-link>
      <router-link to="/bar">Go to Bar</router-link>
    </p>
      <img src="./assets/logo.png">
       <hello-world></hello-world>
      <txt></txt>
      <v-once></v-once>
      <v-html></v-html>
      <property></property>
       <router-view/> -->
  </div>
</template>

<script>
  // 引入
  // import HelloWorld from "@/components/HelloWorld";
  // import Txt from "@/components/Txt";
  // import VOnce from "@/components/VOnce";
  // import VHtml from "@/components/VHtml";
  // import Property from "./components/Property";
  export default {
    name: 'app',
    data () {
      return {
        title: 'Tour of Heroes',
        hero: {
          id: 1,
          name: 'windstorm'
        }
      }
    },
    components: {
      // 声明
      // HelloWorld,
      // Txt,
      // VOnce,
      // VHtml,
      // Property
    }
  }
</script>

<style scoped>
  #app {
    font-family: "Avenir", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    margin-top: 60px;
  }

  h1,
  h2 {
    font-weight: normal;
  }

  ul {
    list-style-type: none;
    padding: 0;
  }

  li {
    display: inline-block;
    margin: 0 10px;
  }

  a {
    color: #42b983;
  }
</style>

